package com.wx.tgp.designpattern.decorativePattern.PresonDecorative;

/**
 * 人类装饰类
 */
public class PersonDecorative extends Decorative{

    private Decorative decorative;

    public void setDecorative(Decorative decorative){
        this.decorative = decorative;
    }

    @Override
    public void Decorative() {
        if(decorative!=null){
            decorative.Decorative();
        }
    }
}
